import axios from '@/api/fetch';
import SERVER from '@/api/server';



//根据物料组编码批量查询物料组名称
export const getPartGroupCodeInfoPage = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/partOrdertype/queryPartOrderTypeByBatchGroudCode`,{params});

//获取备件类型控制信息列表
export const getPartTypeBaseInfoPage = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/partOrdertype`,{params});

// 根据id保存
export const savePartGroupInfo = (params) => axios.post(`${SERVER.CMSCLOUD_WMS}/part/partOrdertype/savePartGroupInfo`, params)

//查询物料组代码名称集
export const getSearchGroupInfoList = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/material`,{params});

//切换超越次数是否可提报状态managerStatus
export const managerStatus = (params) => axios.post(`${SERVER.CMSCLOUD_WMS}/part/partOrdertype/interAspect`,params);

//删除物料组deleteGroupCodeOnly
export const deleteGroupCodeOnly = (params) => axios.post(`${SERVER.CMSCLOUD_WMS}/part/partOrdertype/deleteGroupCodeOnly`,params);

//更新起订金额，免运费次数，截止时间
export const updateOrderTypeController = (params) => axios.post(`${SERVER.CMSCLOUD_WMS}/part/partOrdertype/updateOrderTypeController`, params)

